package com.liu.communitysystemend.security.controller;


import com.liu.communitysystemend.module.user.service.UserService;
import com.liu.communitysystemend.utils.RedisUtil;
import com.liu.communitysystemend.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author liu
 * @create 2023-02-18 15:56
 */

@Api(tags = "权限")
@RestController
public class AuthController {
    @Autowired
    private UserService userService;

    @Autowired
    RedisUtil redisUtil;

    @ApiOperation("注册用户")
    @PostMapping("/auth/register")
    public Result registerUser(@RequestBody Map<String,String> registerUser){
        return userService.register(registerUser);
    }

}
